amplitude of periodic function